<?php
class SearchController extends Apps_Controller_Action_Default {
    public function indexAction() {
        $rq = $this->_request;
        $keyword = $this->quote(trim($rq->getParam('keyword')));

        $searchModel = new M_Search();
        $result = $searchModel->getResult($keyword);

        $this->view->keyword = $keyword;
        $this->setPagination($result, $this->_request, 12);
    }
}